﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fast2Jenkins.Jenkins
{
    /// <summary>
    /// A Jenkins Job is usually a product or dependency that runs in 
    /// its own project setup with build scripts and such. 
    /// </summary>
    public class Job
    {
        private String name;
        /// <summary>
        /// The name of the Job.
        /// </summary>
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String url;
        /// <summary>
        /// The link to the details page of the Job.
        /// </summary>
        public String Url
        {
            get { return url; }
            set { url = value; }
        }

        private String color;
        /// <summary>
        /// Project and build status is usually represented in different colors. 
        /// Red: Build or project failure, Yellow: Tests failed, Grey: Project disabled, Blue: All OK.
        /// </summary>
        public String Color
        {
            get { return color; }
            set { color = value; }
        }

    }
}
